package com.doubi.model.sys;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 后台用户角色关联表
 *
 * @author MrDoubi
 * @since 2019-11-06
 */
@Data
@TableName("t_sys_user_role")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class TSysUserRole extends Model<TSysUserRole> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.UUID)

    private String oid;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

    /**
     * 用户oid
     */
    @TableField("user_oid")

    private String userOid;


    /**
     * 角色oid
     */
    @TableField("role_oid")

    private String roleOid;


}